package com.ddh.ddhsanguogame.vo;

import com.ddh.ddhsanguogame.entity.CardMessage;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author 董代恒
 * @version 1.0
 */
@Data
public class CardMessageVO {

    @ApiModelProperty(value = "消息内容", example = "Hello, world!")
    private String content;

    @ApiModelProperty(value = "发送者ID", example = "1")
    private Long senderId;

    @ApiModelProperty(value = "接收者ID（私聊消息）", example = "2")
    private Long receiverId;

    @ApiModelProperty(value = "发送时间", example = "2023-10-01 12:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sendTime;

    @ApiModelProperty(value = "消息类型（GROUP, PRIVATE）", example = "PRIVATE")
    private String messageType;
}
